/*
 * IDoc.java
 *
 * Created on 24 aprile 2004, 19.38
 */

package net.ermannofranco.xml;

import java.io.File;
import java.io.Writer;

/**
 * 
 * @author ermanno (ermanno.franco@gmail.com)
 */
public interface IDoc {

	/**
	 * Add a generic comment in the middle of document, not bound to any tag.
	 */
	IDoc addCommentedText(String comment);

	IDoc save(File file);

	IDoc save(String fileName);

	IDoc save();

	IDoc print();
	
	IDoc print(BlankLine blankLineBetweenTags);

	IDoc print(Writer writer);

	IDoc save(File file, Indent indent);

	IDoc save(String fileName, Indent indent);

	IDoc save(Indent indent);

	IDoc print(Indent indent);

	IDoc print(Writer writer, Indent indent);
	
	IDoc logInfo();
	
	IDoc logInfo(Indent indent);
}
